devel:
	make CFLAGS=-DPORT=2333 all

stable:
	make -B CFLAGS=-DUSE_DEFAULT_IP all

all: server tictactoe

server: server-main.c server.h protocol.h server.o
	gcc ${CFLAGS} server-main.c server.o -o server -g

server.o: server.c server.h protocol.h
	gcc ${CFLAGS} -c server.c -g

tictactoe: client.c client.h protocol.h
	gcc ${CFLAGS} -g client.c -lpthread -o tictactoe

clean:
	rm server.o server tictactoe
